import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;


public class Main {
	int id;
	
	
	public static void main(String[] args){
		List<Integer> numbers = new ArrayList<Integer>(); 
		numbers.add(1);
		numbers.add(0, 2);
		numbers.clear();
		numbers.add(5);
		numbers.get(0);
		numbers.remove(0);
		for(int i  = 0; i < 5; ++i){
			numbers.add(i);
		}
		for(Integer i: numbers){
			System.out.println(i);
		}
		
		Map<String, String> items = new HashMap<String, String>();
		items.put("fish", "stick");
		items.get("fish");
		items.containsKey("fish");
		items.containsValue("stick");
		
		Set<String> uniques = new HashSet<String>();
		uniques.add("hi");
		uniques.remove("hi");
		
		
	}
	
	/* (non-Javadoc)
	 * @see java.lang.Object#hashCode()
	 */
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + id;
		return result;
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#equals(java.lang.Object)
	 */
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Main other = (Main) obj;
		if (id != other.id)
			return false;
		return true;
	}
}
